home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DMAKE38C.ARJ / STDARG.H < prev    next >
Text File  |  1992-01-23  |  469b  |  23 lines

  1. /*
  2.  * stdarg.h
  3.  *
  4.  * defines ANSI style macros for accessing arguments of a function which takes
  5.  * a variable number of arguments
  6.  *
  7.  */
  8.  
  9. #if !defined(__STDARG_H__)
  10. #define __STDARG_H__
  11.  
  12. #if !defined(_VA_LIST_) && !defined(_VA_LIST)
  13. #define _VA_LIST_
  14. #define _VA_LIST
  15. typedef char *va_list;
  16. #endif
  17.  
  18. #define va_dcl int va_alist
  19. #define va_start(ap,v)  ap = (va_list)&va_alist
  20. #define va_arg(ap,t)    ((t*)(ap += sizeof(t)))[-1]
  21. #define va_end(ap)      ap = NULL
  22. #endif
  23.